.class public Lcom/instagram/android/h/d;
.super Ljava/lang/Object;
.source "FeedbackUtil.java"


# static fields
.field private static final a:[Ljava/lang/String;


# direct methods
.method static constructor <clinit>()V
    .locals 3

    .prologue
    .line 32
    const/4 v0, 0x5

    new-array v0, v0, [Ljava/lang/String;

    const/4 v1, 0x0

    const-string v2, "feedback_title"

    aput-object v2, v0, v1

    const/4 v1, 0x1

    const-string v2, "feedback_message"

    aput-object v2, v0, v1

    const/4 v1, 0x2

    const-string v2, "feedback_appeal_label"

    aput-object v2, v0, v1

    const/4 v1, 0x3

    const-string v2, "feedback_ignore_label"

    aput-object v2, v0, v1

    const/4 v1, 0x4

    const-string v2, "feedback_url"

    aput-object v2, v0, v1

    sput-object v0, Lcom/instagram/android/h/d;->a:[Ljava/lang/String;

    return-void
.end method

.method public static a(Landroid/app/Activity;)Lcom/facebook/b/a/j;
    .locals 4
    .parameter

    .prologue
    .line 56
    instance-of v0, p0, Lcom/instagram/android/activity/h;

    if-nez v0, :cond_0

    .line 57
    const/4 v0, 0x0

    .line 61
    :goto_0
    return-object v0

    :cond_0
    move-object v0, p0

    .line 59
    check-cast v0, Lcom/instagram/android/activity/h;

    .line 60
    invoke-virtual {v0}, Lcom/instagram/android/activity/h;->f()Landroid/support/v4/app/r;

    move-result-object v0

    .line 61
    new-instance v1, Lcom/facebook/b/a/k;

    invoke-direct {v1, p0}, Lcom/facebook/b/a/k;-><init>(Landroid/content/Context;)V

    invoke-virtual {v1}, Lcom/facebook/b/a/k;->a()Lcom/facebook/b/a/i;

    move-result-object v1

    const-string v2, "FeedbackUtil.BROADCAST_INTENT_FEEDBACK_REQUIRED"

    new-instance v3, Lcom/instagram/android/h/e;

    invoke-direct {v3, v0}, Lcom/instagram/android/h/e;-><init>(Landroid/support/v4/app/r;)V

    invoke-interface {v1, v2, v3}, Lcom/facebook/b/a/i;->a(Ljava/lang/String;Lcom/facebook/d/a;)Lcom/facebook/b/a/i;

    move-result-object v0

    invoke-interface {v0}, Lcom/facebook/b/a/i;->a()Lcom/facebook/b/a/j;

    move-result-object v0

    goto :goto_0
.end method

.method public static a(Landroid/os/Bundle;)V
    .locals 2
    .parameter

    .prologue
    .line 77
    new-instance v0, Landroid/content/Intent;

    const-string v1, "FeedbackUtil.BROADCAST_INTENT_FEEDBACK_REQUIRED"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 78
    invoke-virtual {v0, p0}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    .line 79
    invoke-static {v0}, Lcom/instagram/n/d;->a(Landroid/content/Intent;)Z

    .line 80
    return-void
.end method

.method public static a(Landroid/support/v4/app/r;Landroid/os/Bundle;)V
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 95
    const-string v0, "feedback_message"

    invoke-virtual {p1, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 96
    invoke-static {v0}, Lcom/facebook/g/u;->a(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 109
    :cond_0
    :goto_0
    return-void

    .line 99
    :cond_1
    if-eqz p0, :cond_0

    .line 100
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    new-instance v1, Lcom/instagram/android/h/f;

    invoke-direct {v1, p1, p0}, Lcom/instagram/android/h/f;-><init>(Landroid/os/Bundle;Landroid/support/v4/app/r;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    goto :goto_0
.end method

.method public static a(Landroid/support/v4/app/r;Lcom/instagram/android/d/j/j;)V
    .locals 1
    .parameter
    .parameter

    .prologue
    .line 83
    invoke-static {p1}, Lcom/instagram/android/h/d;->d(Lcom/instagram/android/d/j/j;)Landroid/os/Bundle;

    move-result-object v0

    invoke-static {p0, v0}, Lcom/instagram/android/h/d;->a(Landroid/support/v4/app/r;Landroid/os/Bundle;)V

    .line 84
    return-void
.end method

.method public static a(Lcom/instagram/android/d/j/j;)V
    .locals 1
    .parameter

    .prologue
    .line 41
    invoke-static {p0}, Lcom/instagram/android/h/d;->b(Lcom/instagram/android/d/j/j;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 42
    invoke-static {p0}, Lcom/instagram/android/h/d;->c(Lcom/instagram/android/d/j/j;)V

    .line 44
    :cond_0
    return-void
.end method

.method public static b(Lcom/instagram/android/d/j/j;)Z
    .locals 3
    .parameter

    .prologue
    const/4 v0, 0x1

    .line 47
    invoke-virtual {p0}, Lcom/instagram/android/d/j/j;->i()Ljava/lang/String;

    move-result-object v1

    .line 48
    if-eqz v1, :cond_1

    const-string v2, "feedback_required"

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 51
    :cond_0
    :goto_0
    return v0

    :cond_1
    const-string v1, "feedback_required"

    invoke-virtual {p0, v1}, Lcom/instagram/android/d/j/j;->b(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_2

    invoke-static {v0}, Ljava/lang/String;->valueOf(Z)Ljava/lang/String;

    move-result-object v1

    const-string v2, "feedback_required"

    invoke-virtual {p0, v2}, Lcom/instagram/android/d/j/j;->c(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_0

    :cond_2
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public static c(Lcom/instagram/android/d/j/j;)V
    .locals 1
    .parameter

    .prologue
    .line 73
    invoke-static {p0}, Lcom/instagram/android/h/d;->d(Lcom/instagram/android/d/j/j;)Landroid/os/Bundle;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/android/h/d;->a(Landroid/os/Bundle;)V

    .line 74
    return-void
.end method

.method private static d(Lcom/instagram/android/d/j/j;)Landroid/os/Bundle;
    .locals 6
    .parameter

    .prologue
    .line 87
    new-instance v1, Landroid/os/Bundle;

    invoke-direct {v1}, Landroid/os/Bundle;-><init>()V

    .line 88
    sget-object v2, Lcom/instagram/android/h/d;->a:[Ljava/lang/String;

    array-length v3, v2

    const/4 v0, 0x0

    :goto_0
    if-ge v0, v3, :cond_0

    aget-object v4, v2, v0

    .line 89
    invoke-virtual {p0, v4}, Lcom/instagram/android/d/j/j;->c(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v1, v4, v5}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 88
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 91
    :cond_0
    return-object v1
.end method
